/**
 * 水波纹效果样式
 * 提供点击时的水波纹动画效果
 */

/* 水波纹容器 */
.ripple-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

/* 水波纹元素 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
    will-change: transform, opacity;
}

/* 水波纹动画 */
@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 0.35;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* 暗色模式下的水波纹颜色 */
.dark .ripple {
    background-color: rgba(255, 255, 255, 0.3);
}
